Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlServerDsc: Stop instances in integration tests #1115

Merged
merged 13 commits into from
Apr 22, 2018

Conversation

johlju
Copy link
Member

@johlju johlju commented Apr 22, 2018

Pull Request (PR) description

  • Changes to SqlAlwaysOnService
    • Minor code cleanup in integration test, fixed the scope on variable.
  • Changes to SqlSetup
    • Updated the integration tests to stop some services after each integration test.
      This is to save memory on the AppVeyor build worker.
    • Updated the integration tests to use a SQL Server 2016 Service Pack 1.
  • Changes to SqlRS
    • Updated the integration tests to stop the Reporting Services service after
      the integration test. This is to save memory on the AppVeyor build worker.
    • The helper function Restart-ReportingServicesService should no longer timeout
      when restarting the service (issue #1114).
  • Changes to SqlServiceAccount
    • Updated the integration tests to stop some services after each integration test.
      This is to save memory on the AppVeyor build worker.

This Pull Request (PR) fixes the following issues

Fixes #1114

Task list

  • Added an entry under the Unreleased section in the CHANGELOG.md? Entry
    should say what was changed, and how that affects users (if applicable).
  • Resource documentation added/updated in README.md?
  • Resource parameter descriptions added/updated in README.md, schema.mof
    and comment-based help?
  • Comment-based help added/updated?
  • Localization strings added/updated in all localization files as appropriate?
  • Examples appropriately added/updated?
  • Unit tests added/updated?
    See DSC Resource Testing Guidelines.
  • Integration tests added/updated (where possible)?
    See DSC Resource Testing Guidelines.
  • New/changed code adheres to
    DSC Resource Style Guidelines
    and Best Practices?

This change is Reviewable

johlju and others added 12 commits April 21, 2018 13:07
- Changes to SqlAlwaysOnService
  - Updated the integration tests to use a loopback adapter to be less intrusive
    in the build worker environment.
  - Minor code cleanup in integration test, fixed the scope on variable.
- Changes to SqlSetup
  - Updated the integration tests to stop the services after each integration test.
    This is to save memory on the AppVeyor build worker.
Updated the integration tests to use a SQL Server 2016 Service Pack 1.
- Updated the integration tests to stop the Reporting Services service after
  the integration test. This is to save memory on the AppVeyor build worker.
- Sometimes the integration tests failed to start services in the AppVeyor
  build worker. Now the value 'ServicesPipeTimeout' is set to the max of two
  minutes (default 30 seconds) in appveyor.yml (issue dsccommunity#1114).
@johlju johlju changed the title Stop instances SqlServerDsc: Stop instances in integration tests Apr 22, 2018
@johlju
Copy link
Member Author

johlju commented Apr 22, 2018

This will hopefully resolve all PR's being blocked by failing tests. I will merge this one as soon as it passes all checks.

@johlju johlju added the needs review The pull request needs a code review. label Apr 22, 2018
@codecov-io
Copy link

codecov-io commented Apr 22, 2018

Codecov Report

Merging #1115 into dev will increase coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##            dev   #1115    +/-   ##
=====================================
+ Coverage    97%     97%   +<1%     
=====================================
  Files        32      32            
  Lines      3930    3936     +6     
=====================================
+ Hits       3844    3850     +6     
  Misses       86      86

@johlju
Copy link
Member Author

johlju commented Apr 22, 2018

Reviewed 4 of 8 files at r1, 2 of 7 files at r2, 6 of 6 files at r3.
Review status: 12 of 13 files reviewed at latest revision, all discussions resolved.


Tests/Integration/MSFT_SqlServiceAccount.config.ps1, line 197 at r3 (raw file):

        Stopping the default instance service.

    .NOTES

Should not have this comment


Tests/Integration/MSFT_SqlServiceAccount.config.ps1, line 201 at r3 (raw file):

          - Must have the default instance MSSQLSERVER started.
#>

Remove extra blank row


Comments from Reviewable

@johlju
Copy link
Member Author

johlju commented Apr 22, 2018

Review status: 11 of 13 files reviewed at latest revision, 2 unresolved discussions.


Tests/Integration/MSFT_SqlServiceAccount.config.ps1, line 197 at r3 (raw file):

Previously, johlju (Johan Ljunggren) wrote…

Should not have this comment

Done.


Tests/Integration/MSFT_SqlServiceAccount.config.ps1, line 201 at r3 (raw file):

Previously, johlju (Johan Ljunggren) wrote…

Remove extra blank row

Done.


Comments from Reviewable

@johlju
Copy link
Member Author

johlju commented Apr 22, 2018

Reviewed 1 of 8 files at r1, 1 of 1 files at r4.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@johlju johlju merged commit 4c84907 into dsccommunity:dev Apr 22, 2018
@johlju johlju removed the needs review The pull request needs a code review. label Apr 22, 2018
@johlju johlju deleted the stop-instances branch April 22, 2018 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SqlRs: The helper function Restart-ReportingServicesService timeouts
2 participants